package Homework.Top6;

import java.io.BufferedReader;
import java.io.FileReader;

public class Test2 {
    public static void main(String[] args) {
        String temp;
        int max = Integer.MIN_VALUE;
        int i = 0;
        BufferedReader br = null;
        try {
            br = new BufferedReader(new FileReader("F:\\QQ聊天\\1620564202\\FileRecv\\data.txt"));
            int[] numbers = new int[100000];
            while ((temp = br.readLine()) != null) {
                if (temp.isEmpty())
                    break;
                numbers[i++] = Integer.parseInt(temp);
            }
            for (i = 0; i < numbers.length; i++)
                if (max < numbers[i])
                    max = numbers[i];
            System.out.println(max);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}


